package com.cadre.system.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cadre.common.utils.oldutil.PageUtils;
import com.cadre.common.utils.oldutil.Query;
import com.cadre.system.domain.officer.PX_PXBXX;
import com.cadre.system.domain.officer.PX_RepotDTO;
import com.cadre.system.mapper.PX_ReportMapper;
import com.cadre.system.service.PX_ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("PX_ReportService")
public class PX_ReportServiceImpl implements PX_ReportService {
    @Autowired
    PX_ReportMapper rxMap;

    @Override // com.tdqy.cadre.modular.profess.service.PX_ReportService
    public PageUtils getListForPage(Map<String, Object> map) {
        Page<PX_RepotDTO> page = new Query(map).getPage();
        return new PageUtils(page.setRecords(this.rxMap.getListForPage(page, map)));
    }

    @Override // com.tdqy.cadre.modular.profess.service.PX_ReportService
    public List<PX_PXBXX> getListByPersonid(String personid) {
        return this.rxMap.getListByPersonid(personid);
    }
}
